<template>
  <div class="rank-list-main">
    <!-- -->
    <div class="rank-title">排行榜</div>

    <div class="v-rank-list">
      <div class="rank-item">
        <div class="r-user-img">
          <div class="subscript">1</div>
          <img src="@/assets/snake/body-1.png" alt="">
        </div>
        <p class="r-user-name">微信用户</p>
      </div>

      <div class="rank-item">
        <div class="r-user-img">
          <div class="subscript">2</div>
          <img src="@/assets/snake/body-3.png" alt="">
        </div>
        <p class="r-user-name">微信用户2</p>
      </div>

      <div class="rank-item">
        <div class="r-user-img">
          <div class="subscript">3</div>
          <img src="@/assets/snake/body-2.png" alt="">
        </div>
        <p class="r-user-name">微信用户3</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'VRankList',

  data() {
    return {
      
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss">
.rank-list-main {
  width: 5rem;
  margin-top: 1rem;
  margin-left: 1rem;
  height: 18rem;
  border: 0.1rem solid #ed7777b7;
  border-radius: 0.4rem;
  padding: 0.6rem 0.2rem;
  box-sizing: border-box;
  text-align: center;
  background-color: #fff;
  .rank-title {
    font-weight: bold;
    color: #333;
    height: 1.5rem;
  }
}
.v-rank-list {
  width: 4rem;
  margin: 0 0.3rem;
  .rank-item {
    width: 4rem;
    height: 4.5rem;
    margin: 0.3rem auto;
  }
  
  .r-user-img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background-color: #ff0000;
    margin: auto;
    position: relative;
    img {
      width: 2.2rem;
      height: 2.2rem;
      margin: 0.3rem;
    }
    .subscript {
      position: absolute;
      top: 0;
      left: 0;
      width: 0.8rem;
      height: 0.8rem;
      font-size: 0.6rem;
      text-align: center;
      line-height: 0.8rem;
      border-radius: 50%;
      background-color: aqua;
    }
  }
  .r-user-name {
    margin-top: 0.2rem;
    font-size: 0.8rem;
  }
}
</style>